<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jstl/core"
	xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
	xmlns:rich="http://richfaces.ajax4jsf.org/rich"
	xmlns:a4j="https://ajax4jsf.dev.java.net/ajax"
	xmlns:t="https://code.google.com/p/rad-framework/taglib"
	xmlns:tt="https://code.google.com/p/rad-framework"
	xmlns:s="http://jboss.com/products/seam/taglib">
	
	<script type="text/javascript">
		function popupWindow(url) 
		{
			var width  = #{width == null ? 800 : width};
			var height = #{height == null ? 600 : height};
			var left   = (screen.width  - width)/2;
			var top    = (screen.height - height)/2;
			var params = 'width='+width+', height='+height;
			params += ', top='+top+', left='+left;
			params += ', directories=no';
			params += ', location=no';
			params += ', menubar=no';
			params += ', resizable=no';
			params += ', scrollbars=yes';
			params += ', status=no';
			params += ', toolbar=no';
			newwin=window.open(url,'#{id}', params);
			if (window.focus) {newwin.focus()}
			return false;
		}
		</script>

	<s:fragment>
		<h:outputLink id="#{id}" value="javascript: void(0)"
			onclick="popupWindow('#{url}')">
			<h:outputText value="#{value}" />
		</h:outputLink>
	</s:fragment>
	
</ui:composition>